package com.cloudcentral.entity.vo;

import com.cloudcentral.entity.DisabledFrequency;
import com.cloudcentral.entity.Radio;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * Create by Administrator
 * 2023/11/23 19:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Schema(description = "探测任务详细数据")
public class DetectDetailVO {
  @Schema(description = "ID")
  private Long id;
  @Schema(description = "禁用频率")
  private DisabledFrequency disabledFrequency;
  @Schema(description = "主站")
  private Radio master;
  @Schema(description = "从站")
  private Radio slave;
  @Schema(description = "监听站")
  private List<Radio> listeners;
  @Schema(description = "24小时策略")
  private List<Object> strategy;
  @Schema(description = "名称")
  private String name;
  @Schema(description = "任务类型(continue,连续探测;selected,选频探测;)")
  private String type;
  @Schema(description = "启停状态")
  private Boolean status;
  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
}
